# Makefile for GiTMbot. Version 1.15
#
#
#
#
COMPILER = g++
CCFLAGS = -Wall -g
LIBS    = -lsqlite -lpthread
EXE     = GiTMbot
OBJS  = main.o \
	authGuy.o \
	conGuy.o \
	buff.o \
	parser.o \
	bot.o


all: GiTMbot


GiTMbot: $(OBJS)
	$(COMPILER) $(CCFLAGS) -o $(EXE) $(OBJS) $(LIBS)

main.o: main.cc
	$(COMPILER) $(CCFLAGS) -c main.cc

authGuy.o: authGuy/authGuy.cc authGuy/authGuy.h
	$(COMPILER) $(CCFLAGS) -c authGuy/authGuy.cc;

conGuy.o: conGuy/conGuy.cc conGuy/conGuy.h
	$(COMPILER) $(CCFLAGS) -c conGuy/conGuy.cc;

buff.o: conGuy/buff.cc conGuy/buff.h
	$(COMPILER) $(CCFLAGS) -c conGuy/buff.cc;

parser.o: parser/parser.cc parser/parser.h
	$(COMPILER) $(CCFLAGS) -c parser/parser.cc;

bot.o: bot/bot.cc bot/bot.h
	$(COMPILER) $(CCFLAGS) -c bot/bot.cc;

fakeclean:
	rm -f *~ *.o; \
	rm -f bot/*~ bot/*.o; \
	rm -f authGuy/*~ authGuy/*.o; \
	rm -f event/*~; \
	rm -f conGuy/*~ conGuy/*.o; \
	rm -f parser/*~ parser/*.o; \
	rm -f config/*~

clean:
	rm -f *~ *.o GiTMbot; \
	rm -f bot/*~ bot/*.o; \
	rm -f authGuy/*~ authGuy/*.o; \
	rm -f event/*~; \
	rm -f conGuy/*~ conGuy/*.o; \
	rm -f parser/*~ parser/*.o; \
	rm -f config/*~; \
	rm -f core.*
